home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_mtools.idb / usr / freeware / catman / u_man / cat1 / mdir.Z / mdir
Encoding:
Text File  |  1998-10-28  |  26.8 KB  |  727 lines

  1.  
  2.  
  3.  
  4.      mmmmddddiiiirrrr((((1111))))          mmmmttttoooooooollllssss----3333....9999....1111 ((((11110000JJJJuuuunnnn99998888))))           mmmmddddiiiirrrr((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNaaaammmmeeee
  9.       mdir - display an MSDOS directory
  10.  
  11.  
  12.  
  13.      NNNNooootttteeee
  14.       This manpage has been    automatically generated    from mtools's
  15.       texinfo documentation.  However, this    process    is only
  16.       approximative, and some items, such as crossreferences,
  17.       footnotes and    indices    are lost in this translation process.
  18.       Indeed, this items have no appropriate representation    in the
  19.       manpage format.  Moreover, only the items specific to    each
  20.       command have been translated,    and the    general    information
  21.       about    mtools has been    dropped    in the manpage version.     Thus
  22.       I strongly advise you    to use the original texinfo doc.
  23.  
  24.       *    To generate a printable copy from the texinfo doc, run
  25.            the following commands:
  26.  
  27.               ....////ccccoooonnnnffffiiiigggguuuurrrreeee;;;; mmmmaaaakkkkeeee    ddddvvvviiii;;;; ddddvvvviiiippppssss mmmmttttoooooooollllssss....ddddvvvviiii
  28.  
  29.  
  30.  
  31.       *    To generate a html copy,     run:
  32.  
  33.               ....////ccccoooonnnnffffiiiigggguuuurrrreeee;;;; mmmmaaaakkkkeeee    hhhhttttmmmmllll
  34.  
  35.            A premade html can be found at:
  36.            `http://www.tux.org/pub/knaff/mtools'
  37.  
  38.       *    To generate an info copy    (browsable using emacs'    info
  39.            mode), run:
  40.  
  41.               ....////ccccoooonnnnffffiiiigggguuuurrrreeee;;;; mmmmaaaakkkkeeee    iiiinnnnffffoooo
  42.  
  43.  
  44.  
  45.       The texinfo doc looks    most pretty when printed or as html.
  46.       Indeed, in the info version certain examples are difficult
  47.       to read due to the quoting conventions used in info.
  48.  
  49.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  50.       The mdir command is used to display an MS-DOS    directory. Its
  51.       syntax is:
  52.  
  53.       mdir [-/] [-f] [-w] [-a] [-X]    _m_s_d_o_s_f_i_l_e [ _m_s_d_o_s_f_i_l_e_s...]
  54.  
  55.       Mdir displays    the contents of    MS-DOS directories, or the
  56.       entries for some MS-DOS files.
  57.  
  58.       Mdir supports    the following command line options:
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 7/15/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      mmmmddddiiiirrrr((((1111))))          mmmmttttoooooooollllssss----3333....9999....1111 ((((11110000JJJJuuuunnnn99998888))))           mmmmddddiiiirrrr((((1111))))
  71.  
  72.  
  73.  
  74.       /    Recursive output, just like Dos'    -s option
  75.  
  76.       w    Wide output.  With this option, mdir prints the
  77.            filenames across    the page without displaying the    file
  78.            size or creation    date.
  79.  
  80.       a    Also list hidden    files.
  81.  
  82.       f    Fast.  Do not try to find out free space.  On larger
  83.            disks, finding out the amount of    free space takes up
  84.            some non    trivial    amount of time,    as the whole FAT must
  85.            be read in and scanned.    The -f flag bypasses this
  86.            step.  This flag    is not needed on FAT32 filesystems,
  87.            which store the size explicitely.
  88.  
  89.       X    Concise listing.     List only a newline separated list of
  90.            pathnames without any decoration    nor additional
  91.            information
  92.  
  93.       An error occurs if a component of the    path is    not a
  94.       directory.
  95.  
  96.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  97.       Mdu is used to list the space    occupied by a directory, its
  98.       subdirectories and its files.    It is similar to the du
  99.       command on Unix.  The    unit used are clusters.     Use the minfo
  100.       command to find out the cluster size.
  101.  
  102.       mdu [-a] [ _m_s_d_o_s_f_i_l_e_s    ... ]
  103.  
  104.       a    All files.  List    also the space occupied    for individual
  105.            files.
  106.  
  107.       s    Only list the total space, don't    give details for each
  108.            subdirectory.
  109.  
  110.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  111.       The mformat command is used to add an    MS-DOS filesystem to a
  112.       low-level formatted diskette.    Its syntax is:
  113.  
  114.       mformat [-t _c_y_l_i_n_d_e_r_s] [-h _h_e_a_d_s] [-s    _s_e_c_t_o_r_s] [-l
  115.       _v_o_l_u_m_e__l_a_b_e_l]    [-F] [-I _f_s_V_e_r_s_i_o_n] [-S    _s_i_z_e_c_o_d_e] [-2
  116.       _s_e_c_t_o_r_s__o_n__t_r_a_c_k__0] [-M _s_o_f_t_w_a_r_e__s_e_c_t_o_r__s_i_z_e]    [-a] [-X] [-C]
  117.       [-H _h_i_d_d_e_n__s_e_c_t_o_r_s] [-r _r_o_o_t__s_e_c_t_o_r_s]    [-B _b_o_o_t__s_e_c_t_o_r] [-0
  118.       _r_a_t_e__o_n__t_r_a_c_k__0] [-A _r_a_t_e__o_n__o_t_h_e_r__t_r_a_c_k_s] [-1] [-k] _d_r_i_v_e:
  119.  
  120.  
  121.       Mformat adds a minimal MS-DOS    filesystem (boot sector, FAT,
  122.       and root directory) to a diskette that has already been
  123.       formatted by a Unix low-level    format.
  124.  
  125.       The following    options    are supported: (The S, 2, 1 and    M
  126.  
  127.  
  128.  
  129.      Page 2                         (printed 7/15/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      mmmmddddiiiirrrr((((1111))))          mmmmttttoooooooollllssss----3333....9999....1111 ((((11110000JJJJuuuunnnn99998888))))           mmmmddddiiiirrrr((((1111))))
  137.  
  138.  
  139.  
  140.       options may not exist    if this    copy of    mtools has been
  141.       compiled without the USE_2M option)
  142.  
  143.      OOOOppppttttiiiioooonnnnssss
  144.       t    The number of cylinders.
  145.  
  146.       h    The number of heads (sides).
  147.  
  148.       s    The number of sectors per track.    If the 2m option is
  149.            given, number of    512-byte sector    equivalents on generic
  150.            tracks (i.e. not    head 0 track 0).  If the 2m option is
  151.            not given, number of physical sectors per track (which
  152.            may be bigger than 512 bytes).
  153.  
  154.       l    An optional volume label.
  155.  
  156.       S    The sizecode. The size of the sector is 2 ^ (sizecode +
  157.            7).
  158.  
  159.       2    2m format. The parameter    to this    option describes the
  160.            number of sectors on track 0, head 0. This option is
  161.            recommended for sectors bigger than normal.
  162.  
  163.       1    don't use a 2m format, even if the current geometry of
  164.            the disk    is a 2m    geometry.
  165.  
  166.       M    software    sector size. This parameter describes the
  167.            sector size in bytes used by the    MS-DOS filesystem. By
  168.            default it is the physical sector size.
  169.  
  170.       a    If this option is given,    an Atari style serial number
  171.            is generated.  Ataris store their serial    number in the
  172.            OEM label.
  173.  
  174.       X    formats the disk    as an XDF disk.    See section XDF    for
  175.            more details. The disk has first    to be low-level
  176.            formatted using the xdfcopy utility included in the
  177.            fdutils package.
  178.  
  179.       C    creates the disk    image file to install the MS-DOS
  180.            filesystem on it. Obviously, this is useless on
  181.            physical    devices    such as    floppies and hard disk
  182.            partitions.
  183.  
  184.       H    number of hidden    sectors. This parameter    is useful for
  185.            formatting hard disk partition, which are not aligned
  186.            on track    boundaries (i.e. first head of first track
  187.            doesn't belong to the partition,    but contains a
  188.            partition table). In that case the number of hidden
  189.            sectors is in general the number    of sectors per
  190.            cylinder. This is untested.
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                         (printed 7/15/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      mmmmddddiiiirrrr((((1111))))          mmmmttttoooooooollllssss----3333....9999....1111 ((((11110000JJJJuuuunnnn99998888))))           mmmmddddiiiirrrr((((1111))))
  203.  
  204.  
  205.  
  206.       n    serial number
  207.  
  208.       F    Format the partition as FAT32 (experimental).
  209.  
  210.       I    Sets the    fsVersion id when formatting a FAT32 drive.
  211.            In order    to find    this out, run minfo on an existing
  212.            FAT32 drive, and    mail me    about it, so I can include the
  213.            correct value in    future versions    of mtools.
  214.  
  215.       c    Sets the    size of    a cluster (in sectors).     If this
  216.            cluster size would generate a FAT that too big for its
  217.            number of bits, mtools automatically increases the
  218.            cluster size, until the FAT is small enough.
  219.  
  220.       r    Sets the    size of    the root directory (in sectors).  Only
  221.            applicable to 12    and 16 bit FATs.
  222.  
  223.       B    Use the bootsector stored in the    given file or device,
  224.            instead of using    its own.  Only the geometry fields are
  225.            updated to match    the target disks parameters.
  226.  
  227.       k    Keep the    existing boot sector as    much as    possible.
  228.            Only the    geometry fields    are updated to match the
  229.            target disks parameters.
  230.  
  231.       0    Data transfer rate on track 0
  232.  
  233.       A    Data transfer rate on tracks other than 0
  234.  
  235.       To format a diskette at a density other than the default,
  236.       you must supply (at least) those command line    parameters
  237.       that are different from the default.
  238.  
  239.       Mformat returns 0 on success or 1 on failure.
  240.  
  241.       It doesn't record bad    block information to the Fat, use
  242.       mkmanifest for that.
  243.  
  244.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  245.       The mkmanifest command is used to create a shell script
  246.       (packing list) to restore Unix filenames. Its    syntax is:
  247.  
  248.       mkmanifest [ _f_i_l_e_s ]
  249.  
  250.       Mkmanifest creates a shell script that aids in the
  251.       restoration of Unix filenames    that got clobbered by the MS-
  252.       DOS filename restrictions.  MS-DOS filenames are restricted
  253.       to 8 character names,    3 character extensions,    upper case
  254.       only,    no device names, and no    illegal    characters.
  255.  
  256.       The mkmanifest program is compatible with the    methods    used
  257.       in pcomm, arc, and mtools to change perfectly    good Unix
  258.  
  259.  
  260.  
  261.      Page 4                         (printed 7/15/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      mmmmddddiiiirrrr((((1111))))          mmmmttttoooooooollllssss----3333....9999....1111 ((((11110000JJJJuuuunnnn99998888))))           mmmmddddiiiirrrr((((1111))))
  269.  
  270.  
  271.  
  272.       filenames to fit the MS-DOS restrictions. This command is
  273.       only useful if the target system which will read the
  274.       diskette cannot handle vfat long names.
  275.  
  276.      EEEExxxxaaaammmmpppplllleeee
  277.       You want to copy the following Unix files to a MS-DOS
  278.       diskette (using the mcopy command).
  279.  
  280.            vvvveeeerrrryyyy____lllloooonnnngggg____nnnnaaaammmmeeee
  281.            2222....mmmmaaaannnnyyyy....ddddoooottttssss
  282.            iiiilllllllleeeeggggaaaallll::::
  283.            ggggoooooooodddd....cccc
  284.            pppprrrrnnnn....ddddeeeevvvv
  285.            CCCCaaaappppiiiittttaaaallll
  286.  
  287.  
  288.  
  289.       Mcopy    converts the names to:
  290.  
  291.            vvvveeeerrrryyyy____lllloooonnnn
  292.            2222xxxxmmmmaaaannnnyyyy....ddddooootttt
  293.            iiiilllllllleeeeggggaaaallllxxxx
  294.            ggggoooooooodddd....cccc
  295.            xxxxpppprrrrnnnn....ddddeeeevvvv
  296.            ccccaaaappppiiiittttaaaallll
  297.  
  298.  
  299.  
  300.       The command:
  301.  
  302.          mmmmkkkkmmmmaaaannnniiiiffffeeeesssstttt    vvvveeeerrrryyyy____lllloooonnnngggg____nnnnaaaammmmeeee 2222....mmmmaaaannnnyyyy....ddddoooottttssss iiiilllllllleeeeggggaaaallll:::: ggggoooooooodddd....cccc pppprrrrnnnn....ddddeeeevvvv CCCCaaaappppiiiittttaaaallll >>>>mmmmaaaannnniiiiffffeeeesssstttt
  303.  
  304.       would    produce    the following:
  305.  
  306.            mmmmvvvv vvvveeeerrrryyyy____lllloooonnnn vvvveeeerrrryyyy____lllloooonnnngggg____nnnnaaaammmmeeee
  307.            mmmmvvvv 2222xxxxmmmmaaaannnnyyyy....ddddooootttt 2222....mmmmaaaannnnyyyy....ddddoooottttssss
  308.            mmmmvvvv iiiilllllllleeeeggggaaaallllxxxx iiiilllllllleeeeggggaaaallll::::
  309.            mmmmvvvv xxxxpppprrrrnnnn....ddddeeeevvvv pppprrrrnnnn....ddddeeeevvvv
  310.            mmmmvvvv ccccaaaappppiiiittttaaaallll CCCCaaaappppiiiittttaaaallll
  311.  
  312.  
  313.  
  314.       Notice that "good.c" did not require any conversion, so it
  315.       did not appear in the    output.
  316.  
  317.       Suppose I've copied these files from the diskette to another
  318.       Unix system, and I now want the files    back to    their original
  319.       names.  If the file "manifest" (the output captured above)
  320.       was sent along with those files, it could be used to convert
  321.       the filenames.
  322.  
  323.      BBBBuuuuggggssss
  324.  
  325.  
  326.  
  327.      PPPPaaaaggggeeee 5555                         ((((pppprrrriiiinnnntttteeeedddd 7777////11115555////99998888))))
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      mmmmddddiiiirrrr((((1111))))          mmmmttttoooooooollllssss----3333....9999....1111 ((((11110000JJJJuuuunnnn99998888))))           mmmmddddiiiirrrr((((1111))))
  335.  
  336.  
  337.  
  338.       The short names generated by mkmanifest follow the old
  339.       convention (from mtools-2.0.7) and not the one from Windows
  340.       95 and mtools-3.0.
  341.  
  342.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  343.       The minfo command prints the parameters of a Dos filesystem,
  344.       such as number of sectors, heads and cylinders.  It also
  345.       prints an mformat command line which can be used to create a
  346.       similar Dos filesystem on another media.  However, this
  347.       doesn't work with 2m or Xdf media, and with Dos 1.0
  348.       filesystems minfo _d_r_i_v_e:
  349.  
  350.  
  351.       Mlabel supports the following    option:
  352.  
  353.       v    Prints a    hexdump    of the bootsector, in addition to the
  354.            other information
  355.  
  356.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  357.       The mlabel command adds a volume label to a disk. Its    syntax
  358.       is:  mlabel [-vcs] _d_r_i_v_e:[_n_e_w__l_a_b_e_l]
  359.  
  360.  
  361.       Mlabel displays the current volume label, if present.    If
  362.       _n_e_w__l_a_b_e_l is not given, and if neither the c nor the s
  363.       options are set, it prompts the user for a new volume    label.
  364.       To delete an existing    volume label, press return at the
  365.       prompt.
  366.  
  367.       Reasonable care is taken to create a valid MS-DOS volume
  368.       label.  If an    invalid    label is specified, mlabel changes the
  369.       label    (and displays the new label if the verbose mode    is
  370.       set).    Mlabel returns 0 on success or 1 on failure.
  371.  
  372.       Mlabel supports the following    options:
  373.  
  374.       c    Clears an existing label, without prompting the user
  375.  
  376.       s    Shows the existing label, without prompting the user.
  377.  
  378.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  379.       The mmd command is used to make an MS-DOS subdirectory. Its
  380.       syntax is:
  381.  
  382.       mmd [-voOsSrRA] _m_s_d_o_s_d_i_r_e_c_t_o_r_y [ _m_s_d_o_s_d_i_r_e_c_t_o_r_i_e_s... ]
  383.  
  384.       Mmd makes a new directory on an MS-DOS filesystem. An    error
  385.       occurs if the    directory already exists.
  386.  
  387.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  388.       The mmount command is    used to    mount an MS-DOS    disk. It is
  389.       only available on Linux, as it is only useful    if the OS
  390.  
  391.  
  392.  
  393.      Page 6                         (printed 7/15/98)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      mmmmddddiiiirrrr((((1111))))          mmmmttttoooooooollllssss----3333....9999....1111 ((((11110000JJJJuuuunnnn99998888))))           mmmmddddiiiirrrr((((1111))))
  401.  
  402.  
  403.  
  404.       kernel allows    to configure the disk geometry.    Its syntax is:
  405.  
  406.       mmount _m_s_d_o_s_d_r_i_v_e [_m_o_u_n_t_a_r_g_s]
  407.  
  408.       Mmount reads the boot    sector of an MS-DOS disk, configures
  409.       the drive geometry, and finally mounts it passing mountargs
  410.       to mount. If no mount    arguments are specified, the name of
  411.       the device is    used. If the disk is write protected, it is
  412.       automatically    mounted    read only.
  413.  
  414.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  415.       The mmove command is used to moves or    renames    an existing
  416.       MS-DOS file or subdirectory.    mmove [-voOsSrRA] _s_o_u_r_c_e_f_i_l_e
  417.       _t_a_r_g_e_t_f_i_l_e mmove [-voOsSrRA] _s_o_u_r_c_e_f_i_l_e [ _s_o_u_r_c_e_f_i_l_e_s... ]
  418.       _t_a_r_g_e_t_d_i_r_e_c_t_o_r_y
  419.  
  420.       Mmove    moves or renames an existing MS-DOS file or
  421.       subdirectory.    Unlike the MS-DOS version of MOVE, mmove is
  422.       able to move subdirectories.    Files or directories can only
  423.       be moved within one filesystem. Data cannot be moved from
  424.       Dos to Unix or vice-versa.  If you omit the drive letter
  425.       from the target file or directory, the same letter as    for
  426.       the source is    assumed.  If you omit the drive    letter from
  427.       all parameters, drive    a: is assumed by default.
  428.  
  429.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  430.       The mpartition command is used to create MS-DOS filesystems
  431.       as partitions.  This is intended to be used on non-Linux
  432.       systems, i.e.    systems    where fdisk and    easy access to Scsi
  433.       devices are not available.  This command only    works on
  434.       drives whose partition variable is set.
  435.  
  436.       mpartition -p    _d_r_i_v_e mpartition -r _d_r_i_v_e mpartition -I    _d_r_i_v_e
  437.       mpartition -a    _d_r_i_v_e mpartition -d _d_r_i_v_e mpartition -c    [-s
  438.       _s_e_c_t_o_r_s] [-h _h_e_a_d_s] [-t _c_y_l_i_n_d_e_r_s] [-v [-T _t_y_p_e] [-b _b_e_g_i_n]
  439.       [-l length] [-f]
  440.  
  441.  
  442.       Mpartition supports the following operations:
  443.  
  444.       p    Prints a    command    line to    recreate the partition for the
  445.            drive.  Nothing is printed if the partition for the
  446.            drive is    not defined, or    an inconsistency has been
  447.            detected.  If verbose (-v) is also set, prints the
  448.            current partition table.
  449.  
  450.       r    Removes the partition described by _d_r_i_v_e.
  451.  
  452.       I    Initializes the partition table,    and removes all
  453.            partitions.
  454.  
  455.       c    Creates the partition described by _d_r_i_v_e.
  456.  
  457.  
  458.  
  459.      Page 7                         (printed 7/15/98)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      mmmmddddiiiirrrr((((1111))))          mmmmttttoooooooollllssss----3333....9999....1111 ((((11110000JJJJuuuunnnn99998888))))           mmmmddddiiiirrrr((((1111))))
  467.  
  468.  
  469.  
  470.       a    "Activates" the partition, i.e. makes it    bootable.
  471.            Only one    partition can be bootable at a time.
  472.  
  473.       d    "Desactivates" the partition, i.e. makes    it unbootable.
  474.  
  475.       If no    operation is given, the    current    settings are printed.
  476.  
  477.       For partition    creations, the following options are
  478.       available:
  479.  
  480.       s _s_e_c_t_o_r_s
  481.            The number of sectors per track of the partition    (which
  482.            is also the number of sectors per track for the whole
  483.            drive).
  484.  
  485.       h _h_e_a_d_s
  486.            The number of heads of the partition (which is also the
  487.            number of heads for the whole drive).  By default, the
  488.            geometry    information (number of sectors and heads) is
  489.            figured out from    neighbouring partition table entries,
  490.            or guessed from the size.
  491.  
  492.       t _c_y_l_i_n_d_e_r_s
  493.            The number of cylinders of the partition    (not the
  494.            number of cylinders of the whole    drive.
  495.  
  496.       b _b_e_g_i_n
  497.            The starting offset of the partition, expressed in
  498.            sectors.    If begin is not    given, mpartition lets the
  499.            partition begin at the start of the disk    (partition
  500.            number 1), or immediately after the end of the previous
  501.            partition.
  502.  
  503.       l _l_e_n_g_t_h
  504.            The size    (length) of the    partition, expressed in
  505.            sectors.     If end    is not given, mpartition figures out
  506.            the size    from the number    of sectors, heads and
  507.            cylinders.  If these are    not given either, it gives the
  508.            partition the biggest possible size, considering    disk
  509.            size and    start of the next partition.
  510.  
  511.       The following    option is available for    all operation which
  512.       modify the partition table:
  513.  
  514.       f    Usually,    before writing back any    changes    to the
  515.            partition, mpartition performs certain consistenct
  516.            checks, such as checking    for overlaps and proper
  517.            alignment of the    partitions.  If    any of these checks
  518.            fails, the partition table is not changes.  The -f
  519.            allows you to override these safeguards.
  520.  
  521.       The following    option is available for    all operations:
  522.  
  523.  
  524.  
  525.      Page 8                         (printed 7/15/98)
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      mmmmddddiiiirrrr((((1111))))          mmmmttttoooooooollllssss----3333....9999....1111 ((((11110000JJJJuuuunnnn99998888))))           mmmmddddiiiirrrr((((1111))))
  533.  
  534.  
  535.  
  536.       v    Together    with -p    prints the partition table as it is
  537.            now (no change operation), or as    it is after it is
  538.            modified.
  539.  
  540.       vv   If the verbosity    flag is    given twice, mpartition    will
  541.            print out a hexdump of the partition table when reading
  542.            it from and writing it to the device.
  543.  
  544.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  545.       The mrd command is used to remove an MS-DOS subdirectory.
  546.       Its syntax is:
  547.  
  548.       mrd [-v] _m_s_d_o_s_d_i_r_e_c_t_o_r_y [ _m_s_d_o_s_d_i_r_e_c_t_o_r_i_e_s...    ]
  549.  
  550.  
  551.       Mrd removes a    directory from an MS-DOS filesystem. An    error
  552.       occurs if the    directory does not exist or is not empty.
  553.  
  554.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  555.       The mren command is used to rename or    move an    existing MS-
  556.       DOS file or subdirectory. Its    syntax is:
  557.  
  558.       mren [-voOsSrRA] _s_o_u_r_c_e_f_i_l_e _t_a_r_g_e_t_f_i_l_e
  559.  
  560.  
  561.       Mren renames an existing file    on an MS-DOS filesystem.
  562.  
  563.       In verbose mode, Mren    displays the new filename if the name
  564.       supplied is invalid.
  565.  
  566.       If the first syntax is used (only one    sourcefile), and if
  567.       the target name doesn't contain any slashes or colons, the
  568.       file (or subdirectory) is renamed in the same    directory,
  569.       instead of being moved to the    current    mcd directory as would
  570.       be the case with mmove. Unlike the MS-DOS version of REN,
  571.       mren can be used to rename directories.
  572.  
  573.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  574.       The mshowfat command is used to display the FAT entries for
  575.       a file.  Syntax:
  576.  
  577.       $ mshowfat files
  578.  
  579.  
  580.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  581.       The mtoolstest command is used to tests the mtools
  582.       configuration    files. To invoke it, just type mtoolstest
  583.       without any arguments.  Mtoolstest reads the mtools
  584.       configuration    files, and prints the cumulative configuration
  585.       to stdout. The output    can be used as a configuration file
  586.       itself (although you might want to remove redundant
  587.       clauses).  You may use this program to convert old-style
  588.  
  589.  
  590.  
  591.      Page 9                         (printed 7/15/98)
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.      mmmmddddiiiirrrr((((1111))))          mmmmttttoooooooollllssss----3333....9999....1111 ((((11110000JJJJuuuunnnn99998888))))           mmmmddddiiiirrrr((((1111))))
  599.  
  600.  
  601.  
  602.       configuration    files into new style configuration files.
  603.  
  604.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  605.       The mtype command is used to display contents    of an MS-DOS
  606.       file.    Its syntax is:
  607.  
  608.       mtype    [-ts] _m_s_d_o_s_f_i_l_e    [ _m_s_d_o_s_f_i_l_e_s...    ]
  609.  
  610.  
  611.       Mtype    displays the specified MS-DOS file on the screen.
  612.  
  613.       In addition to the standard options, Mtype allows the
  614.       following command line options:
  615.  
  616.       t    Text file viewing.  Mtype translates incoming carriage
  617.            return/line feeds to line feeds.
  618.  
  619.       s    Mtype strips the    high bit from the data.
  620.  
  621.       The mcd command may be used to establish the device and the
  622.       current working directory (relative to MS-DOS), otherwise
  623.       the default is A:/.
  624.  
  625.       Mtype    returns    0 on success, 1    on utter failure, or 2 on
  626.       partial failure.
  627.  
  628.       Unlike the MS-DOS version of TYPE, mtype allows multiple
  629.       arguments.
  630.  
  631.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  632.       The mzip command is used to issue ZIP    disk specific commands
  633.       on Solaris or    HPUX. Its syntax is:
  634.  
  635.       mzip [-epqrwx]
  636.  
  637.  
  638.       Mzip allows the following command line options:
  639.  
  640.       e    Ejects the disk.
  641.  
  642.       f    Force eject even    if the disk is mounted (must be    given
  643.            in addition to -e).
  644.  
  645.       r    Write protect the disk.
  646.  
  647.       w    Remove write protection.
  648.  
  649.       p    Password    write protect.
  650.  
  651.       x    Password    protect
  652.  
  653.       u    Temporarily unprotect the disk until it is ejected.
  654.  
  655.  
  656.  
  657.      Page 10                         (printed 7/15/98)
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.      mmmmddddiiiirrrr((((1111))))          mmmmttttoooooooollllssss----3333....9999....1111 ((((11110000JJJJuuuunnnn99998888))))           mmmmddddiiiirrrr((((1111))))
  665.  
  666.  
  667.  
  668.            The disk    becomes    writable, and reverts back to its old
  669.            state when ejected.
  670.  
  671.       q    Queries the status
  672.  
  673.       To remove the    password, set it to one    of the passwordless
  674.       modes    -r or -w: mzip will then ask you for the password, and
  675.       unlock the disk.  If you have    forgotten the password,    you
  676.       can get rid of it by low-level formatting the    disk (using
  677.       your SCSI adaptor's BIOS setup).
  678.  
  679.       The ZipTools disk shipped with the drive is also password
  680.       protected.  On Dos or    on a Mac, this password    is
  681.       automatically    removed    once the ZipTools have been installed.
  682.       From various articles    posted to Usenet, I learned that the
  683.       password for the tools disk is APlaceForYourStuff.  Mzip
  684.       knows    about this password, and tries it first, before
  685.       prompting you    for a password.     Thus mzip -w z: unlocks the
  686.       tools    disk.  The tools disk is formatted in a    special    way so
  687.       as to    be usable both in a PC and in a    Mac.  On a PC, the Mac
  688.       filesystem appears as    a hidden file named `partishn.mac'.
  689.       You may erase    it to reclaim the 50 Megs of space taken up by
  690.       the Mac filesystem.
  691.  
  692.      DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  693.       The xcopy script is used to recursively copy one directory
  694.       to another. Its syntax is:
  695.  
  696.       xcopy    _s_o_u_r_c_e_d_i_r_e_c_t_o_r_y    _t_a_r_g_e_t_d_i_r_e_c_t_o_r_y
  697.  
  698.  
  699.       If targetdirectory does not exist, it    is created.  If    it
  700.       does exist, the files    of sourcedirectory are directly    copied
  701.       into it, and no subdirectory called _s_o_u_r_c_e_d_i_r_e_c_t_o_r_y is
  702.       created, unlike with cp -rf.
  703.  
  704.      BBBBuuuuggggssss
  705.       This command is a big    kludge.     A proper implementation would
  706.       take a rework    of significant parts of    mtools,    but
  707.       unfortunately    I don't    have the time for this right now. The
  708.       main downside    of this    implementation is that it is
  709.       inefficient on some architectures (several successive    calls
  710.       to mtools, which defeats mtools' caching).
  711.  
  712.      SSSSeeeeeeee AAAAllllssssoooo
  713.       Mtools' texinfo doc
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.      Page 11                         (printed 7/15/98)
  724.  
  725.  
  726.  
  727.